{
	arguments: {id : undefined, list : "@default", title : "", notes : "", due : "", completed : "false"},
	method: "PUT",
	url: function() {
		return "/lists/" + $args.list + "/tasks/" + $args.id;
	},
	body: function() {
		result = {
			id : $args.id
		};
		
		if ($args.title !== "") {
			result.title = $args.title;
		}
		
		if ($args.notes !== "") {
			result.notes = $args.notes;
		}
		
		if ($args.due !== "") {
			result.due = $args.due;
		}
		
		if ($args.completed === "true") {
			result.status = "completed";
		}
		
		return result;
	}
}